package com.android.meige.model.group;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/7/13.
 */

public abstract class SameCityMainDataCallback extends Callback<SameCityMainData> {

    @Override
    public SameCityMainData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        SameCityMainData data = new Gson().fromJson(string, SameCityMainData.class);
        return data;
    }
}